package com.ihg.hiex.entity.session.after;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author dan
 *
 */
@Alias("ReportGenerateStatus")
public enum ReportGenerateStatus {

    UNGENERATED("ungenerated", "未生成"),
    
    GENERATING("generating", "正在生成"),
    
    GENERATED("generated", "已生成");
    
    private String code;
    
    private String description;

    /**
     * @param code
     * @param description
     */
    private ReportGenerateStatus(String code, String description) {
        this.code = code;
        this.description = description;
    }

    /**
     * @return
     */
    public boolean isUngnerated() {
        return this.equals(UNGENERATED);
    }
    
    /**
     * @return
     */
    public boolean isGenerating() {
        return this.equals(GENERATING);
    }
    
    /**
     * @return
     */
    public boolean isGenerated() {
        return this.equals(GENERATED);
    }
    
    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }
    
}
